<?php if(!class_exists("View", false)) exit("no direct access allowed");?><table>
<?php echo templeate()?>
<?php echo htmlspecialchars($c->tt(), ENT_QUOTES, "UTF-8"); ?>

<?php echo htmlspecialchars($title, ENT_QUOTES, "UTF-8"); ?>
<?php echo htmlspecialchars($layout, ENT_QUOTES, "UTF-8"); ?>
<?php $_foreach_v_counter = 0; $_foreach_v_total = count($mydd);?><?php foreach( $mydd as $v ) : ?><?php $_foreach_v_index = $_foreach_v_counter;$_foreach_v_iteration = $_foreach_v_counter + 1;$_foreach_v_first = ($_foreach_v_counter == 0);$_foreach_v_last = ($_foreach_v_counter == $_foreach_v_total);$_foreach_v_counter++;?>
	<tr>
		<td><?php echo htmlspecialchars($v['id'], ENT_QUOTES, "UTF-8"); ?></td>
		<td><?php echo htmlspecialchars($v['name'], ENT_QUOTES, "UTF-8"); ?></td>
	</tr>
<?php endforeach; ?>

  <tr>
      <td colspan="2">
                          总数量:<?php echo htmlspecialchars($page['total_count'], ENT_QUOTES, "UTF-8"); ?>
                          总页数:<?php echo htmlspecialchars($page['total_page'], ENT_QUOTES, "UTF-8"); ?>
             页码
          <?php $_foreach_p_counter = 0; $_foreach_p_total = count($page['all_pages']);?><?php foreach( $page['all_pages'] as $p ) : ?><?php $_foreach_p_index = $_foreach_p_counter;$_foreach_p_iteration = $_foreach_p_counter + 1;$_foreach_p_first = ($_foreach_p_counter == 0);$_foreach_p_last = ($_foreach_p_counter == $_foreach_p_total);$_foreach_p_counter++;?>
            <a href="?page=<?php echo htmlspecialchars($p, ENT_QUOTES, "UTF-8"); ?>">
            <?php if ($p== $page['current_page']) : ?>
                    <strong><?php echo htmlspecialchars($p, ENT_QUOTES, "UTF-8"); ?> </strong>
            <?php else : ?>
                <?php echo htmlspecialchars($p, ENT_QUOTES, "UTF-8"); ?>
            <?php endif; ?>
            </a>
          <?php endforeach; ?>
      </td>
  </tr>

 </table>
